//
//  RocAPPManager.m
//  RocRemoteControlProject
//
//  Created by 新致李照鹏 on 2018/12/19.
//  Copyright © 2018年 Roc. All rights reserved.
//

#import "RocAPPManager.h"
#import "RocRemoteControlVC.h"
#import "RocProgrammingVC.h"

@implementation RocAPPManager


/**
 切换到遥控模式
 */
- (void)SwitchToControlMode
{
    [[NSNotificationCenter defaultCenter] postNotificationName:ROC_Notification_Name_SwitchToControl object:nil];
//    RocRemoteControlVC *vc = [[RocRemoteControlVC alloc] init];
//    [UIApplication sharedApplication].delegate.window.rootViewController = vc;
    
}

/**
 切换到编程模式
 */
- (void)SwitchToProgrammingMode
{
    [[NSNotificationCenter defaultCenter] postNotificationName:ROC_Notification_Name_SwitchToProgramming object:nil];
//    RocProgrammingVC *vc = [[RocProgrammingVC alloc] init];
//    [UIApplication sharedApplication].delegate.window.rootViewController = vc;
}

/**
 切换到蓝牙界面
 */
- (void)SwitchToBluetoothVC
{
    [[NSNotificationCenter defaultCenter] postNotificationName:ROC_Notification_Name_SwitchToBluetoothVC object:nil];
    //    RocProgrammingVC *vc = [[RocProgrammingVC alloc] init];
    //    [UIApplication sharedApplication].delegate.window.rootViewController = vc;
}


#pragma mark - 单例初始化
/**
 * 单例初始化
 */
+ (instancetype)Manager
{
    static RocAPPManager *_RocManager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _RocManager = [[super allocWithZone:nil] init];
    });
    return _RocManager;
}
+ (instancetype)allocWithZone:(struct _NSZone *)zone
{
    return [RocAPPManager Manager];
}
-(id)copyWithZone:(NSZone *)zone{
    return [RocAPPManager Manager];
}
-(id)mutableCopyWithZone:(NSZone *)zone{
    return [RocAPPManager Manager];
}

@end
